package com.xiantm.study.thread.towparsetermination;

public class Main {

    public static void main(String[] args) {
        System.out.println("Main: BEGIN.");
        try{
            CountupThread t = new CountupThread();
            t.start();
            Thread.sleep(2000);
            t.shutdownRequest();
            System.out.println("Main: Join.");
            t.join();
        }catch (InterruptedException interruptedException){
            interruptedException.printStackTrace();
        }
        System.out.println("Main END.");
    }
}
